$(document).ready(function(){
    var fileInput = $('#fileInput');
    var downloadBtn = $('#downloadBtn');
    var pHint= $('#pHint');
    downloadBtn.click(function(){
      var fileUrl = fileInput.val();
      if(fileUrl){
        pHint.hide();
        location.href = "https://yuanqiao.pw/yqiao/download/download.php?url="+fileUrl;
      }else{
        pHint.show();
        return false;
      }
    });
});